package tech.wetech.admin3.sys.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import tech.wetech.admin3.sys.model.AooUser;

@Repository
public interface AooUserRepository extends JpaRepository<AooUser, Long> {
  AooUser findByEmail(String email);

  AooUser findByPhone(String phone);

  /// 如果数据库中没有找到匹配的记录，deleteByEmail方法不会抛出异常，而是什么都不做
  void deleteByEmail(String email);

}
